package com.example.oasystem.dao.process;

import com.example.oasystem.entity.dept.AoaDept;
import com.example.oasystem.entity.position.AoaPosition;
import com.example.oasystem.entity.process.AoaProcessOfSun;
import com.example.oasystem.entity.process.AoaUserProcessOfSun;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AoaUserProcessDaoOfSun {


    List<AoaUserProcessOfSun> selectUserProcess(@Param("id")long id,@Param("userName") String...userName);

    List<AoaUserProcessOfSun> selectUsers(@Param("baseKey") String baseKey,@Param("fatherId")long fatherId);

    List<AoaPosition> selectPosition();

    List<AoaDept> selectDept();

    long selectOneUser(@Param("userName")String userName);

    List<AoaUserProcessOfSun> selectUserSubordinate(@Param("userId")long userId,@Param("baseKey")String baseKey);

}
